package org.example.domain;

import java.util.List;

/**
 * @author Jimmy
 * @version 1.0
 */
public class Model {
    private String modelId;
    private String pid;
    private String modelName;
    private String pName;
    private String path;
    private String modelRemark;
    private int state;
    private List<Model> children;

    public Model() {
    }

    public Model(String modelId, String modelName, String pName) {
        this.modelId = modelId;
        this.modelName = modelName;
        this.pName = pName;
    }

    public String getPName() {
        return pName;
    }

    public void setPName(String pName) {
        this.pName = pName;
    }

    public String getModelRemark() {
        return modelRemark;
    }

    public void setModelRemark(String modelRemark) {
        this.modelRemark = modelRemark;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<Model> getChildren() {
        return children;
    }

    public void setChildren(List<Model> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Model{" +
                "modelId='" + modelId + '\'' +
                ", pid='" + pid + '\'' +
                ", modelName='" + modelName + '\'' +
                ", pName='" + pName + '\'' +
                ", path='" + path + '\'' +
                ", modelRemark='" + modelRemark + '\'' +
                ", state=" + state +
                ", children=" + children +
                '}';
    }
}
